'use strict';

/**
 * @ngdoc filter
 * @name jgappApp.filter:trusthtml
 * @function
 * @description
 * # trusthtml
 * Filter in the jgappApp.
 */
angular.module('jgappApp')
    .filter('trusthtml', function($sce) {
        return function(input) {
            return $sce.trustAsHtml(input);

        }
    })
    .filter('parsetohtml', function() {
        return function(input) {
            if (input) {
                input = input.replace(/\r\n/g, "<br/>");
                console.log(input)
                return input
            }

        }
    });
